<?php
if (YII_DEBUG) {
	Error_Reporting(E_ALL);
}

defined('PROTECTED_PATH') or define('PROTECTED_PATH', dirname(__FILE__) . '/protected');
defined('APP_PATH') or define('APP_PATH', PROTECTED_PATH . '/app');
defined('SCRIPTS_PATH') or define('SCRIPTS_PATH', PROTECTED_PATH . '/scripts');
defined('JS_PATH') or define('JS_PATH',dirname(__FILE__) . '/js');
defined('UPLOADS_PATH') or define('UPLOADS_PATH',dirname(__FILE__) . '/uploads');

$config = APP_PATH . '/config/main.php';
$yii = PROTECTED_PATH . '/yii/yii.php';
include $yii;

Yii::createWebApplication($config)->run();